import type { IForm } from '@/base-ui/HyForm/types';

export const userPageModalConfig: IForm = {
  formItems: [
    {
      type: 'input',
      field: 'name',
      label: '用户名',
      placeholder: '请输入用户名'
    },
    {
      type: 'input',
      field: 'realname',
      label: '真实姓名',
      placeholder: '请输入真实姓名'
    },
    {
      type: 'input',
      field: 'password',
      label: '用户密码',
      placeholder: '请输入用户密码',
      isHidden: false,
      other: {
        password: true
      }
    },
    {
      type: 'input',
      field: 'cellphone',
      label: '电话号码',
      placeholder: '请输入电话号码'
    },
    {
      type: 'select',
      field: 'enable',
      label: '用户状态',
      placeholder: '请选择用户状态',

      other: {
        options: [
          {
            label: '启用',
            value: 1
          },
          {
            label: '禁用',
            value: 0
          }
        ]
      }
    },
    {
      type: 'select',
      field: 'departmentId',
      label: '选择部门',
      placeholder: '请选择部门',

      other: {
        options: []
      }
    },
    {
      type: 'select',
      field: 'roleId',
      label: '选择角色',
      placeholder: '请选择角色',
      other: {
        options: []
      }
    }
  ],
  reactiveCol: {
    xs: 24,
    sm: 24,
    md: 24,
    lg: 24,
    xl: 24
  },
  labelWidth: '80px',
  gutter: 20
};

export const rolePageModalConfig: IForm = {
  formItems: [
    {
      type: 'input',
      field: 'name',
      label: '角色名',
      placeholder: '请输入角色名'
    },
    {
      type: 'input',
      field: 'intro',
      label: '角色介绍',
      placeholder: '请输入角色介绍'
    }
  ],
  reactiveCol: {
    xs: 24,
    sm: 24,
    md: 24,
    lg: 24,
    xl: 24
  },
  labelWidth: '80px',
  gutter: 20
};
